//
//  playerView.h
//  LanQiuQuan
//
//  Created by TonyGenius on 16/4/11.
//  Copyright © 2016年 Rip. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PlayerModel.h"

@interface playerView : UIView

@property (nonatomic, assign) BOOL isHome;

@property (nonatomic, strong) UIImageView *backGroundImage;

@property (nonatomic, strong) UILabel *number;

@property (nonatomic, strong) UILabel *foulNumber;

@property (nonatomic, strong) PlayerModel *playerData;

@property (nonatomic, assign) NSInteger positionNumber;

@property (nonatomic, assign) NSInteger playerIndex;

@property (weak, nonatomic) IBOutlet UILabel *playerNumber;

@property (weak, nonatomic) IBOutlet UILabel *playerFoul;

@property (weak, nonatomic) IBOutlet UIImageView *background;

@property (weak, nonatomic) IBOutlet UIImageView *avater;


- (void)setdeTialwithbackground:(UIImage *)image PlayerNumber:(NSString *)number PlayerModel:(PlayerModel *)model andPositionNumber:(NSInteger)positionNumber;

- (id)initWithBackground:(UIImage *)image andPlayerNmuber:(NSString *)number andPlayerName:(NSString *)name andPosition:(NSString *)position;


@end
